 <div class="row">
    <h3 class="page-header" >采购申请</h3></div>
    <div class="row">
        <div class="panel panel-default">
            <div class="panel-body">
                <form role="form" id="myform" method="post"  class="form-horizontal" >
                    <table class="table table-striped table-bordered table-hover">
                        <thead>
                            <tr>
                                <th width="10%">系部:</th>
                                <th width="10%">{$Think.session.adminInfo.xb_name}</th>
                                <th width="10%">类别:</th>
                                <th width="10%">
                                   <select class="form-control" name="category">
                                     <volist name='list_cke' id='list_ck'>
                                       <option value="{$list_ck.name}" <eq name='info.category' value="$list_ck.name">selected</eq>> 
                                         {$list_ck.name}
                                       </option>
                                     </volist>
                                   </select>
                                </th>
                                <th width="10%">填报人:</th>
                                <th width="10%">{$Think.session.adminInfo.name}</th>
                                <th width="10%">填报日期</th>
                                <th width="10%">{:date("Y-m-d")}</th>
                             </tr>
                          </thead>
                     </table>
                  <table class="table table-striped table-bordered table-hover">
                   <thead>
                    <tr> 
                        <th>品名</th>
                        <th>规格型号</th>
                        <th>单位</th>
                        <th>单价</th>
                        <th>数量</th>
                        <th>金额</th>
                        <th>备注</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                    <td><input type="text" name="name" class="form-control" value="{$info.name}" /></td>
                    <td><input type="text" name="guige" class="form-control" value="{$info.guige}" /></td>
                    <td><input type="text" name="danwei" class="form-control" value="{$info.danwei}"/></td>
                    <td><input type="text"  id="text1" onkeyup="jisuan();" name="danjia" class="form-control" value="{$info.danjia}" style="text-align:right;" /></td>
                    <td><input type="text"  id="text2" onkeyup="jisuan();" name="shuliang" class="form-control"  value="{$info.shuliang}" style="text-align:right;" /></td>
                    <td><input type="text" id="text3" onkeyup="jisuan();" name="jine" class="form-control" value="{$info.jine}" style="text-align:right;" /></td>
                    <td colspan="3"><input type="text" name="beizhu" class="form-control" value="{$info.beizhu}" /></td>                    
                    </tr>
                    <tr>
                     <div class="uploadify-div">
                        <notempty name='info.file'>
                           <li>{$info.file}<input type="hidden" value="{$info.file}" name="file"><span style="color:blue;cursor:pointer;" class="uploadifyDel">删除</span></li>
                       </notempty>
                  </div>
                    <button class="upload" data-type="file" type="button" id="upload">添加附件</button></tr>
                    </tbody>
                    </table>
                     <div style="text-align:right;">
                    <button class="btn btn-primary" type="submit" style="margin-left: 10px; float: right;">提交</button>
                    <div style="width: 200px; float: right;">
                        <select class="form-control" name="act_type">
                            <option value="save">仅保存</option>
                            <option value="saveSubmit">保存并提交审核</option>
                        </select>
                    </div>
                </div>
                   </form>                        
                </div>
            </div>
        </div>
        <script type="text/javascript" src="/Public/Admin/js/daterangepicker.min.js"></script>
        <script type="text/javascript" src="/Public/Common/js/jquery.min.js"></script>
        <script type="text/javascript">
        var  jisuan=function(){
                  $("#text1").val($("#text1").val().replace(/[^\d^\.]+/g, ''));
                  $("#text2").val($("#text2").val().replace(/^(0+)|[^\d]+/g, ''));           
                  $("#text3").val(parseFloat($("#text1").val())*parseFloat($("#text2").val()));
                  $("#text3").val($("#text3").val().replace(/[^\d^\.]+/g, ''));
              }
           </script>
        <script type="text/javascript" src="{:JS}daterangepicker.min.js"></script>